

<div style="padding:10px 0 10px 0px;" class="middle" id="invoicePutTypePanel">

<input type="checkbox" onclick="if(this.checked){$('#invoiceFormPanel').show();$('#invoice_InvoicePutType').val('0');}else{$('#invoiceFormPanel').hide();$('#invoice_InvoicePutType').val('3');}" id="chkInvoicePutType">
<label style="margin-right:17px;" for="chkInvoicePutType">我要开发票</label>

</div>
<div style="display:none;" class="middle" id="invoiceFormPanel">
  <form action="{{$this->Html->url('/orders/info_invoice')}}" onsubmit="return ajaxSubmitForm(this);" method="post">
<div style="" id="invoiceListPanel">
  <div class="cydz">
    <b>常用发票</b><ul>
{{loop $invoices $k $invoice}}
<li id="Invoiceli_{{$invoice['OrderInvoice']['id']}}"><input {{if $k==0}}checked="checked"{{/if}} type="radio" onclick="changeInv(this,'{{$invoice['OrderInvoice']['id']}}');" name="rbtnInv" id="inv_{{$invoice['OrderInvoice']['id']}}"><label for="inv_{{$invoice['OrderInvoice']['id']}}"><strong>{{$invoice['OrderInvoice']['name']}}</strong></label>
<!--<td style="width:80px"><a onclick="DelInv(this,'{{$invoice['OrderInvoice']['id']}}');" class="remark" href="#none">[删除]</a></td>--></li>
{{/loop}}
<li id="Invoiceli_new"><input id="inv_new" type="radio" onclick="changeInv(this,'0');$('#part_invoice_form').show();" name="rbtnInv"><label for="inv_new">新增发票</strong>&nbsp;</label></li>

</ul></div></div>
<div id="part_invoice_form" {{if !empty($invoices)}}style="display:none"{{/if}}>
<div style="display:" id="invoiceContentPanel">
         <table width="100%" cellspacing="0" cellpadding="0" border="0" style="display:" id="tb_invoice" class="txt_12">
            <tbody><tr>
               <td valign="middle" align="left"><span style="margin-right:8px">发票类型：</span>
</td>
                     <td valign="top" align="left"><input type="radio" value="normal" checked="" id="invoince_type" name="data[OrderInvoice][type]"><label for="invoince_type">增值税普通发票</label>
<!-- 
<input type="radio" value="vax" onclick="invoince_setType(2)" id="invoince_InvoiceType2" name="data[OrderInvoice][type]"><label for="invoince_InvoiceType2">增值税发票</label>
 -->
 <script>
 function changeInv(rdio,value){
  if(value > 0) {
    $('#part_invoice_form').hide();
  }
 }
 </script>
<span id="panel_invoicetypeRemark" class="gray"></span></td>
            </tr>
            </tbody><tbody style="" id="invoice_titleTr">
               
                 <tr id="invoice_unitNameTr" class="txt_color_hui form-inline">
                     <td width="120" valign="middle" align="left">单位名称：</td>
                     <td valign="top" align="left">
                        <input class="form-control" type="text" onblur="check_invoice_unit()"  name="data[OrderInvoice][name]" value="{{$this->Session->read('OrderInvoice.name')}}" style="width:260px" class="txt" id="invoice_name"><span style="color:red">*</span><br><span class="gray">温馨提示：您填写的所有内容都将被系统自动打印到发票上，所以请千万别填写和发票抬头无关的信息。</span>
                     </td>
                 </tr>
             </tbody>

<!-- 
             <tbody><tr style="display: none;" id="invoice_ivc_Tr" class="txt_color_hui">
                 <td valign="top" align="left" colspan="2">
                     <table width="100%" cellspacing="0" cellpadding="0" border="0">
                      
                        <tbody><tr>
                             <td valign="top" align="left" colspan="2">增值税发票专用发票资质填写：</td>
                        </tr>
                        
                        <tr>
                             <td width="88" valign="top" align="left">单位名称：</td>
                             <td width="583" valign="top" align="left">
                                 <input type="text" onblur="check_Ivc_TitName()" value="" style="width:260px" class="txt" id="invoice_Ivc_TitName"><span class="red2">*</span>
                             <span id="Invoice_TitNameEmpty" class="alertInfo">单位名称不能为空！</span></td>
                        </tr>
                        <tr>
                             <td valign="top" align="left">纳税人识别号：</td>
                             <td valign="top" align="left">
                                  <input type="text" onblur="check_NsrCode()" value="" style="width:260px" class="txt" id="invoice_Ivc_NsrCode"><span class="red2">*</span>
                             <span id="Invoice_NsrCodeEmpty" class="alertInfo">纳税人识别号不能为空！</span></td>
                        </tr>
                        <tr>
                             <td valign="top" align="left">注册地址：</td>
                             <td valign="top" align="left">
                                  <input type="text" onblur="check_InvoiceAddress()" value="" style="width:260px" class="txt" id="invoice_Ivc_Address"><span class="red2">*</span>
                             <span id="Invoice_addressEmpty" class="alertInfo">注册地址不能为空！</span></td>
                        </tr>
                        <tr>
                             <td valign="top" align="left">注册电话：</td>
                             <td valign="top" align="left">
                                  <input type="text" onblur="check_InvoicePhone()" value="" style="width:260px" class="txt" id="invoice_Ivc_Phone"><span class="red2">*</span>
                             <span id="Invoice_PhoneEmpty" class="alertInfo">注册电话不能为空！</span></td>
                        </tr>
                        <tr>
                             <td valign="top" align="left">开户银行：</td>
                             <td valign="top" align="left">
                                  <input type="text" onblur="check_InvoiceBank()" value="" style="width:260px" class="txt" id="invoice__Ivc_Bank"><span class="red2">*</span>
                              <span id="Invoice_bankEmpty" class="alertInfo">开户银行不能为空！</span></td>
                        </tr>
                        <tr>
                             <td valign="top" align="left">银行帐户：</td>
                             <td valign="top" align="left">
                                  <input type="text" onblur="check_InvoiceBankCode()" value="" style="width:260px" class="txt" id="invoice_Ivc_BankCode"><span class="red2">*</span>
                             <span id="Invoice_bankCodeEmpty" class="alertInfo">银行帐户不能为空！</span></td>
                        </tr>
                         
                        <tr>
                             <td valign="top" align="left">&nbsp;</td>
                             <td valign="top" align="left" class="gray">
                                  首次开具增值税专用发票的客户需传真加盖公章的营业执照副本、税务登记证副本、一般纳税人资格证书、银行开户许可证复印件至我司客服：<br>北京：010-58688255-8055<br>上海：021-39915634<br>广州：020-34285500-6503<br>成都：028-65976730<br>增值税专用发票不随货物一起发放（包括自提） 
                             </td>
                        </tr>
               </tbody></table>
           </td>
         </tr>
        
      </tbody>
      -->
<tbody><tr>
    <td width="120" valign="middle" align="left" style="padding-top:4px">发票内容：</td>
    <td align="left">
       <span id="invoince_contentPanel">
<input type="radio" value="专业技术服务" checked="checked" id="invoince_content1" name="data[OrderInvoice][content]"><label for="invoince_content1">专业技术服务</label></span>
    </td>
</tr>
</tbody></table>
</div>
  <div class="footer">
       <input type="submit" onclick="savePart_invoice(this)" value="保存发票信息" class="btn">
    </div>
</div>
     </form>

    {{template orders/order_consignee}}
    
</div>

</div>